#include<iostream>
using namespace std;
int main()
{
	char a, b, c;
	while (cin >> a >> b >> c)
	{
		if ((int)a > (int)b)
		{
			char temp = a;
			a = b;
			b = temp;
		}
		if ((int)a > (int)c)
		{
			char temp = a;
			a = c;
			c = temp;
		}
		if ((int)b > (int)c)
		{
			char temp = b;
			b = c;
			c = temp;
		}
		cout << a << " " << b << " " << c << endl;
	}
	return 0;
}